﻿<UserControl x:Class="RL.ucRouteInfoRL"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:my="clr-namespace:RL"
             mc:Ignorable="d" 
             d:DesignHeight="326" d:DesignWidth="672">
    <Grid Width="534">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <!--<RowDefinition Height="Auto" />-->
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <!--<Label Content="Выход" Grid.RowSpan="2" Height="28" HorizontalAlignment="Left" Margin="0" Name="label1" VerticalAlignment="Top" />-->
        <Label Content="Выезд (чч:мм)" Grid.Row="0" Height="28" HorizontalAlignment="Left" Margin="0" Name="label3" />
        <Label Content="Возвр. (чч:мм)" Grid.Row="0" Height="28" HorizontalAlignment="Left" Name="label4" VerticalAlignment="Top" Grid.Column="2"/>
        <Label Content="Проб. общ. (км)" Grid.Row="4" Height="28" HorizontalAlignment="Left" Name="label5" VerticalAlignment="Top" />
        <Label Content="Проб. нул. (км.)" Grid.Row="3" Height="28" HorizontalAlignment="Left" Name="label6" VerticalAlignment="Bottom" />
        <Label Content="Рейсы пл.(кол-во)" Grid.Column="0" Height="28" HorizontalAlignment="Left" Margin="0" Name="label7" VerticalAlignment="Top" Grid.Row="1" />
        <Label Content="Время раб. (часов)" Grid.Column="0" Grid.Row="2" Height="28" HorizontalAlignment="Left" Name="label8" VerticalAlignment="Top" />
        <Label Content="Время отдыха (часов)" Grid.Column="2" Grid.Row="2" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label9" VerticalAlignment="Top" />
        <Label Content="Доход план (руб.)" Grid.Column="2" Grid.Row="4" Height="28" HorizontalAlignment="Left" Name="label10" VerticalAlignment="Top" />
        <Label Content="Доход факт. (руб.)" Grid.Column="2" Grid.Row="3" Height="28" HorizontalAlignment="Left" Name="label11" VerticalAlignment="Bottom" />
        <!--<TextBox Grid.Column="1" Name="textBoxDeparture" Margin="0,0,0,0" Text="{Binding Path=departure}" />-->
        <my:ucTime Grid.Column="1" Grid.Row="0" x:Name="ucTimeDeparture" Margin="0,0,0,0" Height="30" Time="{Binding Path=departure, Mode=TwoWay}"/>
        <my:ucTime Grid.Column="3" Grid.Row="0" x:Name="ucTimeArrive" Margin="0,0,0,0"  Height="30" Time="{Binding Path=arrive, Mode=TwoWay}"/>
        <TextBox Grid.Column="1" Grid.Row="1" Name="textBoxReisPlan" Margin="0,0,0,0" Height="30" Text="{Binding Path=total_reis_plan}" />
        <TextBox Grid.Column="3" Grid.Row="1" Name="textBoxReisFact" Margin="0,0,0,0" Height="30" Text="{Binding Path=total_reis_fact}" />
        <TextBox Grid.Column="1" Grid.Row="2" Name="textBoxWorkTime" Margin="0,0,0,0" Text="{Binding Path=total_work_time}"/>
        <TextBox Grid.Column="3" Grid.Row="2" Name="textBoxRestTime" Margin="0,0,0,0" Text="{Binding Path=total_rest_time}"/>
        <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxLengthZero" Margin="0,0,0,0" Text="{Binding Path=total_free_length}"/>
        <TextBox Grid.Column="1" Grid.Row="4" Name="textBoxLength" Margin="0,0,0,0" Text="{Binding Path=total_length}"/>

        <TextBox Grid.Column="4" Grid.Row="3" Name="textBoxSumFact" Margin="0,0,0,0" Text="{Binding Path=sum_fact}"/>
        <TextBox Grid.Column="4" Grid.Row="4" Name="textBoxSumPlan" Margin="0,0,0,0" Text="{Binding Path=sum_plan}"/>
        <Label Content="Рейсы ф.(кол-во)" Grid.Column="2" Height="28" HorizontalAlignment="Left" Margin="0" Name="label7f" VerticalAlignment="Top" Grid.Row="1" />
        
    </Grid>
</UserControl>
